package com.poptap.base.exception;

import org.springframework.core.ErrorCoded;

/**
 * @author kamen
 * use as the top level exception for pop tap
 */
public class PopTapException extends RuntimeException implements ErrorCoded {

	private static final long serialVersionUID = -9111232832848613066L;

	private String errorCode;
	private String errorMessage;
	
	public PopTapException(String errorCode, String errorMessage) {
		this.errorCode = errorCode;
		this.errorMessage = errorMessage;
	}
	
	@Override
	public String getErrorCode() {
		return this.errorCode;
	}
	
	public String getErrorMessage() {
		return this.errorMessage;
	}

}
